body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd,
form,
input[type="checkbox"],
input[type="radio"],
figure,
pre {
  margin: 0;
}
body {
  font: 14px/1.5 "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
  color: rgb(51, 51, 51);
}
ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
i,
em,
dfn {
  font-style: normal;
}
img {
  border: 0;
  vertical-align: top;
} /* ie6 <img>会有个border */
a {
  color: inherit;
  text-decoration: none;
}
table {
  border-collapse: collapse;
}
th,
td {
  padding: 0;
}
input,
button,
select {
  padding: 0;
  outline: none;
}

/* 清除链接和按钮再点击时的高亮颜色 */
a,
input[type="button"],
button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-appearance: none;
  border-radius: 0;
} /* 清除IOS下按钮的圆角 */

pre,
code {
  font-family: "source-code-pro", Consolas, monospace !important;
}

/* ============== */

html {
  font-size: 16px;
}

@media screen and (min-width: 375px) {
  html {
    /* iPhone6的375px尺寸作为16px基准，414px正好18px大小, 600 20px */
    font-size: calc(100% + 2 * (100vw - 375px) / 39);
    font-size: calc(16px + 2 * (100vw - 375px) / 39);
  }
}
@media screen and (min-width: 414px) {
  html {
    /* 414px-1000px每100像素宽字体增加1px(18px-22px) */
    font-size: calc(112.5% + 4 * (100vw - 414px) / 586);
    font-size: calc(18px + 4 * (100vw - 414px) / 586);
  }
}
@media screen and (min-width: 600px) {
  html {
    /* 600px-1000px每100像素宽字体增加1px(20px-24px) */
    font-size: calc(125% + 4 * (100vw - 600px) / 400);
    font-size: calc(20px + 4 * (100vw - 600px) / 400);
  }
}
@media screen and (min-width: 1000px) {
  html {
    /* 1000px往后是每100像素0.5px增加 */
    font-size: calc(137.5% + 6 * (100vw - 1000px) / 1000);
    font-size: calc(22px + 6 * (100vw - 1000px) / 1000);
  }
}
